package com.tiantianfresh.view.service;

import com.tiantianfresh.model.pojo.Order;
import com.tiantianfresh.model.pojo.ShoppingCart;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author FANGAO
 * @date 2021/12/1 - 下午 12:12
 */
@Service
public interface ShoppingCartService {

    boolean insertShoppingCart(Map<String,Integer> map);

    List<ShoppingCart> queryShoppingCartAll(Integer userid);

    boolean deleteShoppingCart(Integer id);

    boolean deleteShoppingCarts(Map<String, Integer[]> map);
    
    boolean updateQuantityup(Map<String, Integer> map);

    boolean updateQuantitydow(Map<String, Integer> map);

    boolean updeatState(Map<String, Integer> map);

    Order addOrder(Map<String, Object> map);

    boolean initializationState(Map<String, Integer> map);
}
